{% extends "base.html" %}

{% load avatar_tags %}

{% block title_base %}{{ user.userprofile.nickname }}的帐号 | {{ block.super }}{% endblock %}
{% block content_base %}
{% if form %}
{% if form.errors %}
<p class="c_warn">
	更新失败,请检查下面的错误
</p>
{% endif %}
<form action="{% url profile %}" method="post" class="span7">
	<fieldset>
		{{ form.as_p }}
		<div>
			<label>登录密码:</label>
			<a href="{% url edit_password %}" >更改</a>
		</div>
		<div>
			<label>头像:</label>
			{% avatar user 80 %}
		</div>
		<input type="submit" class="btn primary" value="更新设置"/>
	</fieldset>
</form>
{% endif %}
{% endblock %} 